package com.micro.mic_common.feignClients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description
 * @Author yijian
 * @Date 2021/12/30 19:24
 **/
@FeignClient(value = "mic-business")
@Component
@RequestMapping("/business")
public interface BusinessClient {
    @PostMapping(value = "/order/user/{id}")
    String queryUserByUserId(@PathVariable("id") long id);
}
